package com.mycompany.myapp.service.mapper;

import com.mycompany.myapp.domain.UserClass;
import com.mycompany.myapp.service.dto.UserClassDTO;
import java.util.Set;
import org.mapstruct.*;

/**
 * Mapper for the entity {@link UserClass} and its DTO {@link UserClassDTO}.
 */
@Mapper(componentModel = "spring", uses = { CourseMapper.class })
public interface UserClassMapper extends EntityMapper<UserClassDTO, UserClass> {
    @Mapping(target = "course", source = "course", qualifiedByName = "id")
    UserClassDTO toDto(UserClass s);

    @Named("id")
    @BeanMapping(ignoreByDefault = true)
    @Mapping(target = "id", source = "id")
    UserClassDTO toDtoId(UserClass userClass);

    @Named("idSet")
    @BeanMapping(ignoreByDefault = true)
    @Mapping(target = "id", source = "id")
    Set<UserClassDTO> toDtoIdSet(Set<UserClass> userClass);
}
